package com.bluemsun.naturallanguageprocessing;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.TimeZone;

@SpringBootApplication
@ServletComponentScan
@EnableScheduling
@MapperScan(basePackages = "com.bluemsun.naturallanguageprocessing.dao")
public class NaturallanguageprocessingApplication extends SpringBootServletInitializer{

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(NaturallanguageprocessingApplication.class);
    }

    public static void main(String[] args) {
//        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
        SpringApplication.run(NaturallanguageprocessingApplication.class, args);
    }

}
